home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / ace_basic / ace24.lha / prgs / Library / hello.b < prev    next >
Encoding:
Text File  |  1996-09-12  |  415 b   |  19 lines

  1.  
  2. {* 
  3. ** A "hello world" program which uses only
  4. ** dos.library functions. Note that FPuts and
  5. ** FPutC are only found under Wb 2.x and up
  6. ** (_Write could be used for 1.3 systems).
  7. **
  8. ** Must be run from a shell/CLI.
  9. *}
  10.  
  11. DECLARE FUNCTION _Output&() LIBRARY dos
  12. DECLARE FUNCTION FPuts(handle&,buf$) LIBRARY dos
  13. DECLARE FUNCTION FPutC(handle&,ch&) LIBRARY dos
  14.  
  15. fh& = _Output
  16.  
  17. FPuts(fh&,"hello world!")
  18. FPutC(fh&,10&)
  19.